package com.lightsaber.trade.as.ws.api.device;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InfoCollectForDeviceDto", propOrder = { "infoCollectForDeviceList" })
@XmlRootElement(name = "InfoCollectForDeviceDto")
public class InfoCollectForDeviceDto {

    @XmlElement(name = "infoCollectForDeviceList")
    List<InfoCollectForDeviceDto.InfoCollectForDevice> infoCollectForDeviceList;

    // --------------- Inner Class ----------------
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "InfoCollectForDevice", propOrder = { "content", "operator" })
    public static class InfoCollectForDevice {

        public InfoCollectForDevice() {

        }

        public InfoCollectForDevice(String content, String operator) {
            super();
            this.content = content;
            this.operator = operator;
        }

        @XmlElement(name = "content")
        private String content;

        @XmlElement(name = "operator")
        private String operator;

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getOperator() {
            return operator;
        }

        public void setOperator(String operator) {
            this.operator = operator;
        }
    }

    // --------------- Props of parent Class ----------------
    public List<InfoCollectForDeviceDto.InfoCollectForDevice> getInfoCollectForDeviceList() {
        return infoCollectForDeviceList;
    }

    public void setInfoCollectForDeviceList(
            List<InfoCollectForDeviceDto.InfoCollectForDevice> infoCollectForDeviceList) {
        this.infoCollectForDeviceList = infoCollectForDeviceList;
    }
}
